import "babel-polyfill";//es6转es5兼容IE
import "url-search-params-polyfill";//让ie兼容new URLSearchParams()
import Vue from 'vue'
import App from './App.vue'
import router from './router';
import store from './store';
import config from './assets/js/conf/config';
import utils from './assets/js/utils';
import './assets/font/iconfont.css'

import { RadioGroup,Sticky,Icon,ContactCard  ,Empty ,Pagination ,NavBar , Radio,Switch,Toast,SwipeCell,Button,Dialog,Search,NoticeBar,DropdownMenu, DropdownItem,Field,Form,Stepper,Calendar,Picker,Popup,Divider,Tab, Tabs,Rate,ActionSheet } from 'vant';
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Switch);
Vue.use(Toast);
Vue.use(SwipeCell);
Vue.use(Button);
Vue.use(Dialog);
Vue.use(Search);
Vue.use(NoticeBar);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Field);
Vue.use(Form);
Vue.use(Stepper);
Vue.use(Calendar);
Vue.use(Picker);
Vue.use(Popup);
Vue.use(Divider);
Vue.use(Rate);
Vue.use(ActionSheet);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Sticky);
Vue.use(Icon);
Vue.use(NavBar);
Vue.use(Pagination);
Vue.use(ContactCard);
Vue.use(Empty);

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 图片预览
import Viewer from "v-viewer";
import "viewerjs/dist/viewer.css";
Vue.use(Viewer);

//视频播放器
import VueCoreVideoPlayer from 'vue-core-video-player'
Vue.use(VueCoreVideoPlayer,{
  lang:'zh-CN'
})

Vue.config.productionTip = false;

Vue.prototype.$config=config;
Vue.prototype.$utils=utils;

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app');
